project(common)

add_library(${PROJECT_NAME}
        STATIC
        buf.c
        dir.c
        fd_util.c
        file-helpers.c
        font.c
        grab-file.c
        graphic-helpers.c
        match.c
        mem.c
        nodename.c
        parse-bool.c
        scaled_font_buffer.c
        scaled_scene_buffer.c
        scene-helpers.c
        spawn.c
        string-helpers.c
        )
target_link_libraries(${PROJECT_NAME}
        PUBLIC
        lib_server_protos
        PkgConfig::GLIB
        PkgConfig::CAIRO
        PkgConfig::PANGO
        PkgConfig::DRM
        PkgConfig::XML
        )
target_include_directories(${PROJECT_NAME}
        PUBLIC
        ${CMAKE_CURRENT_SOURCE_DIR}/../../include
        )
